import org.junit.jupiter.api.Test;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.List;

import toolkit.tianshi.excelpoi.serviceimpl.AbstractExcelPoiUtil;

/**
 * @author Zhanglin
 * @date 2018/3/28 18:49
 */
public class toLead {

    @Test
    void toLead() {
        final InputStream uploadFile;
        try {
            uploadFile = new FileInputStream("D:/tmp/test.xlsx");
        } catch (Exception e) {
            throw new RuntimeException();
        }

        AbstractExcelPoiUtil reader = new AbstractExcelPoiUtil() {
            @Override
            public void getRows(int sheetIndex, int curRow, List<String> rowList) {
                try {
                    //导入方法
                } catch (Exception e) {
                }
            }
        };
        reader.endColumn = 11;
        try {
            reader.process(uploadFile, 1);
        } catch (Exception e) {
            e.printStackTrace();
        }
        try {
            uploadFile.close();
        } catch (Exception e) {
        }
    }

}
